//==================================================
// 作 者：曾浩
// 日 期：2012-03-15
// 描 述：介绍本文件所要完成的功能以及背景信息等等
//==================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreFrame.Core.Orm;

namespace MarchEstate.Manager.BusinesEntity
{
	[Serializable]
	[Table(TableName = "WY_Cars", EntityType = EntityType.Table, IsGB = false)]
	public abstract class AbstractCars : CoreFrame.Business.AbstractBusines
	{
        private string _carid;
        [Column(FieldName = "CarId", DataKey = true, IsSingleQuote = true, Match = "Custom:Guid", IsInsert = false)]
        public string CarId
        {
            get { return _carid; }
            set { _carid = value; }
        }

		private string _code;//
		/// <summary>
		/// 车位号
		/// </summary>
        [Column(FieldName = "CarportId", DataKey = false, IsSingleQuote = true, Match = "", IsInsert = true)]
        public string CarportId
		{
			get { return _code; }
			set { _code = value; }
		}

        private string _ownerId;//
        /// <summary>
        /// 人员ID
        /// </summary>
        [Column(FieldName = "OwnerId", DataKey = false, IsSingleQuote = true, Match = "", IsInsert = true)]
        public string OwnerId
        {
            get { return _ownerId; }
            set { _ownerId = value; }
        }
        private string _username;//使用人
        /// <summary>
        /// 使用人
        /// </summary>
        [Column(FieldName = "OwnerName", DataKey = false, IsSingleQuote = true, Match = "", IsInsert = true)]
        public string OwnerName
        {
            get { return _username; }
            set { _username = value; }
        }

        private string _carNumber;
        /// <summary>
        /// 车牌
        /// </summary>
        [Column(FieldName = "CarNumber", DataKey = false, IsSingleQuote = true, Match = "", IsInsert = true)]
        public string CarNumber
        {
            get { return _carNumber; }
            set { _carNumber = value; }
        }

        private string _carbrand;

        /// <summary>
        /// 车品牌
        /// </summary>
        public string Carbrand
        {
            get { return _carbrand; }
            set { _carbrand = value; }
        }

        private string _memo;
        /// <summary>
        /// 备注
        /// </summary>
        public string Memo
        {
            get { return _memo; }
            set { _memo = value; }
        }

        public abstract bool Save();

        public abstract bool Delete(string _carId);
        /// <summary>
        /// 得到车辆对象
        /// </summary>
        /// <param name="_carId"></param>
        /// <returns></returns>
        public abstract AbstractCars GetCar(string _carId);
	}
}